#pragma once
#include "scenenode.h"


class GeomNode :
	public SceneNode
{
public:
	GeomNode(void);
	GeomNode(const GeomNode& rhs);
	virtual GeomNode& operator=(const GeomNode& rhs);
	virtual ~GeomNode(void);
	void Update(VertBuffer* pvBuff);
	void AddChild(SceneNode* pChild);
	void SetMaterial(float red, float green, float blue);
	D3DMATERIAL9* GetMaterial() {return &mtrl;}
protected:
	DWORD* adjacency;				// Adjacency matrix
	D3DMATERIAL9 mtrl;				// The material of the object, hope to add in texures later
	LPDIRECT3DDEVICE9 pd3dDevice;	// Pointer To graphics device
	LPD3DXMESH pGeomMesh;			// Pointer to mesh object

	virtual void Release();
	virtual void Build()=0;

};
